package com.dao;

import com.entity.Student;
import com.page.PageInfo;

import java.util.List;

public interface StudentDao {
    public List<Student>  getAllStudents()  throws Exception;

    public Student getAccountByAccountName(String name) throws Exception ;
    public Student  selectStudentBySno(String sno)  throws Exception;
    public Student selectBySnoWithScs(String sno)  throws Exception;
    public Student selectBySnoWithClazz(String sno)  throws Exception;
    public Student selectBySnoWithScsAndClazz(String sno)  throws Exception;
    public Student selectBySnoWithClazzANDTeacher(String sno)  throws Exception;
    Student selectBySnoWithScsAndCourse(String sno)  throws Exception;
    //增删改的返回值都是整数
    Integer deleteStudentBySno(String sno)  throws Exception;
    Integer updateStudentBySno(Student student)  throws Exception;
    Integer addStudentBySno(Student student)  throws Exception;

}
